//
//  TWTweetReponseModel.h
//  TWHomework-WeChat
//
//  Created by wzb on 2019/11/13.
//  Copyright © 2019 WZB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TWBaseReponseModel.h"

@class TWUserInfo, TWTweetComment;

NS_ASSUME_NONNULL_BEGIN

@interface TWTweet : TWBaseReponseModel

/// 内容
@property (nonatomic, copy) NSString *content;
/// 附加图片
@property (nonatomic, copy) NSArray <NSString *> *images;
/// 发送者信息
@property (nonatomic, strong) TWUserInfo *sender;
/// 评论列表]
@property (nonatomic, copy) NSArray <TWTweetComment *> *comments;

/// 辅助属性，计算出来的cell高度
@property (nonatomic, assign) CGFloat cellHeight;

@end

@interface TWTweetComment : NSObject
/// 评论内容
@property (nonatomic, copy) NSString *content;
/// 评论发送者信息
@property (nonatomic, strong) TWUserInfo *sender;

/// 获取cell的高度
/// @param preferWidth 最大限制的宽度
- (CGFloat)cellHeightWithPreferWidth:(CGFloat)preferWidth;
@property (nonatomic, assign, readonly) CGFloat cellHeight;

@end

NS_ASSUME_NONNULL_END
